package com.company.abstractfactory;

public class ModernFactory extends AbastractFactory {

    @Override
    Food creatFood() {
        return new Bread();
    }

    @Override
    Weapon createWeapon() {
        return new AK47();
    }

    @Override
    Vehicle createVehicle() {
        return new Car();
    }
}
